<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$title}</title>
    <link rel="shortcut icon" href="__STATIC__/src/common/img/cauliflower-small.png" type="image/x-icon" />
    <link rel="stylesheet" type="text/css"  href="__STATIC__/src/common/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css"  href="__STATIC__/src/common/css/common.css" />
    <link rel="stylesheet" type="text/css"  href="__STATIC__/src/common/css/mobiscroll.min.css" />
</head>
<body>
{include file="common/header"}
<div class="container">
    <div class="col-md-8 col-md-offset-2">
        <div class="alert alert-warning {$alert}">
            现在没有任何通知，想要<a href='{:url("addNotify")}'><strong>添加通知</strong></a>？
        </div>
        <div class="panel panel-info {$showNotify}">
            <div class="panel-heading">
                <h3 class="panel-title">通知详情</h3>
            </div>
            <table class="table table-striped table-hover table-bordered">
                <tr>
                    <th>标题</th>
                    <th>内容</th>
                    <th>通知时间</th>
                    <th>删除</th>
                    <th>查看</th>
                </tr>
                {volist name="notifys" id="notify"}
                <tr>
                    <td>{php} echo mb_strlen($notify['notify_title']) > 7 ? mb_substr($notify['notify_title'], 0, 7).'......' : $notify['notify_title'] {/php}</td>
                    <td>{php} echo mb_strlen($notify['notify_message']) > 7 ? mb_substr($notify['notify_message'], 0, 7).'......' : $notify['notify_message'] {/php}</td>
                    <td>{$notify.notify_time}</td>
                    <td><a href='{php} echo url("deleteNotify?notify=".($notify["notify_id"]*13+31242)) {/php}' title="删除" data-toggle="tooltip"><span class="glyphicon glyphicon-remove"></span></a></td>
                    <td><a href='{php} echo url("showNotify?notify=".($notify["notify_id"]*13+31242)) {/php}' title="详情" data-toggle="tooltip"><span class="glyphicon glyphicon-info-sign"></span></a></td>
                </tr>
                {/volist}
            </table>
        </div>
        <div class="{$showNotify}">
            <a class="btn btn-primary" href='{:url("addNotify")}'>添加通知</a>
        </div>
    </div>
</div>
<script src="__STATIC__/src/common/js/jquery-3.2.1.js"></script>
<script src="__STATIC__/src/common/js/bootstrap.js"></script>
<script src="__STATIC__/src/common/js/admin.js"></script>
<script src="__STATIC__/src/common/js/mobiscroll.min.js"></script>
<script>
    $(function() {
        $("[data-toggle='tooltip']").tooltip();
    });
</script>
</body>
</html>